home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / ip / trace / tcpdump-2.2.1 / mdtype < prev    next >
Encoding:
Text File  |  1992-02-16  |  358 b   |  17 lines

  1. #!/bin/csh -f
  2. # @(#) $Header: mdtype,v 1.3 92/02/16 21:29:41 leres Exp $ (LBL)
  3. #
  4. # Determine machine type.
  5. #
  6. set mach="UNKNOWN"
  7. if ( -f /bin/arch ) set mach=`/bin/arch`
  8. if ($mach == "UNKNOWN") then
  9.     set temp=`machine`
  10.     if ($temp != "") set mach=$temp
  11. endif
  12. # Hack, hack...
  13. if ($mach == "sparc") set mach=sun4
  14. echo $mach
  15. if ($mach == "UNKNOWN") exit 1
  16. exit 0
  17.